#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

     void keyPressEvent(QKeyEvent *event) override;

     void mousePressEvent(QMouseEvent* event) override;

     void mouseReleaseEvent(QMouseEvent *event) override;

     void mouseDoubleClickEvent(QMouseEvent *event) override;
     // 鼠标移动事件
     void mouseMoveEvent(QMouseEvent *event) override;

     void wheelEvent(QWheelEvent *event) override;

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
